package com.neulogistics.core.customercenter.api.application.converter;

import com.neulogistics.core.customercenter.api.application.query.CustomerQuery;
import com.neulogistics.core.customercenter.infrastructure.persistence.orm.po.CustomerPO;
import org.springframework.beans.BeanUtils;

public class CustomerQueryPOConverter {
    public static CustomerPO queryToPO(CustomerQuery customerQuery){
        if(customerQuery == null)
            return null;

        CustomerPO customerPO = new CustomerPO();
        BeanUtils.copyProperties(customerQuery, customerPO);
        return customerPO;
    }
}
